package com.umpay.privi.model.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

/** 
 * desc:用户登录媒介
 * <p>创建人：Ding Zhe 创建日期：Apr 19, 2013 </p>
 * @version V1.0  
 */
public class UserMedia implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 系统编号
	 */
	public static final String SYSID = "sysId";
	
	/**
	 * 用户登录媒介表复合主键：用户编号
	 */
	public static final String USERID = "userId";
	
	/**
	 * 媒介号
	 */
	public static final String MEDIAID = "mediaId";
			
	/**
	 * 用户登录媒介表复合主键：媒介类型
	 */
	public static final String MEDIATYPE = "mediaType";
	
	/**
	 * 用户媒介类型——Email 0
	 */
	public static final String USER_MEDIATYPE_EMAIL = "0";
	/**
	 * 用户媒介类型——手机号 1 
	 */
	public static final String USER_MEDIATYPE_MOBILEID = "1";
	
	/**
	 * 用户媒介类型——登录名 2
	 */
	public static final String USER_MEDIATYPE_LOGNAME = "2";
		
	//用户编号;	
	private String userId;
	//用户媒介类型 0 邮箱;	
	private String mediaType;
	//系统编号 1：运营平台，2：U付企业版;	
	private Short sysId;
	//用户媒介号;	
	private String mediaId;
	//创建时间;	
	private Timestamp inTime;
	//修改时间;	
	private Timestamp modTime;
	//状态0 正常1 删除;	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
	
	public String getUserId(){
		return userId;
	}
			
	public String getMediaType(){
		return mediaType;
	}
			
	public String getMediaId(){
		return mediaId;
	}
			
	public Timestamp getInTime(){
		return inTime;
	}
			
	public Timestamp getModTime(){
		return modTime;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setUserId(String userId){
		this.userId = userId;
	}
		
	public void setMediaType(String mediaType){
		this.mediaType = mediaType;
	}
		
	public void setMediaId(String mediaId){
		this.mediaId = mediaId;
	}
		
	public void setInTime(Timestamp inTime){
		this.inTime = inTime;
	}
		
	public void setModTime(Timestamp modTime){
		this.modTime = modTime;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}

	public Short getSysId() {
		return sysId;
	}

	public void setSysId(Short sysId) {
		this.sysId = sysId;
	}
}